import request from '@/utils/request'

/**
 * 列表
 * @returns
 */
export function GetListAPI(query) {
  return request({
    url: '/system/auxiliaryData/selectAuxiliaryPropertiesList',
    method: 'GET',
    params: query
  })
}

/**
 * 新增
 * @returns
 */
export function AddDataAPI(data) {
  return request({
    url: '/system/auxiliaryData/insertAuxiliaryProperties',
    method: 'POST',
    data
  })
}

/**
 * 修改
 * @returns
 */
export function EditDataAPI(data) {
  return request({
    url: '/system/auxiliaryData/updateAuxiliaryProperties',
    method: 'PUT',
    data
  })
}

/**
 * 查询单条
 * @returns
 */
export function GetViewAPI(data) {
  return request({
    url: '/system/auxiliaryData/getInfoAuxiliary/' + data,
    method: 'GET'
  })
}

/**
 * 删除
 * @returns
 */
export function DelDataAPI(data) {
  return request({
    url: '/system/auxiliaryData/deleteAuxiliaryProperties/' + data,
    method: 'DELETE'
  })
}

//根据配置类别id获取物料类别
export function getlistSelAPI(data) {
  return request({
    url: '/system/categoryMaterial/listSel/' + data,
    method: 'GET'
  })
}
